$(function(){
    let url=window.location.href;
    console.log(qr)
    $.ajax({
        url:"http://chst.vip:1234/api/getdiscountproduct",
        type:"get",
        data:{
             productid:qr.productid
        },
        success(res){
            let {result}=res
            console.log(res)
            let html=""
            result.forEach((item,index,array)=>{
               html+=`
               <h3>${item.productName}</h3>
               <p class="p1">${item.productFrom}&nbsp|&nbsp${item.productTime}&nbsp&nbsp&nbsp${item.productTips}</p>
               <p class="p2">${item.productPrice}</p>
               <span>${item.productInfo}</span>
               ${item.productImg}
               `
            })
            $(".picture").html(html)
        },
        error(err){
            console.error(err)
        }
    })
})